package com.fast.admin.controller.system;


import com.fast.framework.core.request.UserRq;
import com.fast.framework.core.AjaxResult;
import com.fast.framework.core.domain.User;
import com.fast.framework.core.service.IRoleService;
import com.fast.framework.core.service.IUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author lanyuankeji
 */
@RestController
@RequestMapping("/system")
public class UserController {

    @Autowired
    private IUserService userService;

    @Autowired
    private IRoleService roleService;

    @ApiOperation(value = "获取用户列表")
    @GetMapping("/user/list")
    public AjaxResult list(UserRq user) {
        List<User> list = userService.selectUserList(user);
        return  AjaxResult.success(list);
    }

}
